package w9;

public class RegDemo {
	public static void main(String[] args) {
		String tel = "13912345678";
		
		String nt = tel.replaceAll("(\\d{3})(\\d{4})(\\d{4})", "$1-$2-$3");
		System.out.println(nt);
	}

}
